package com.example.myapplication.DesignPatterns.templatePatterns;

import com.example.myapplication.thirdcamera.util.Log;

public class HouseOne extends HouseTemplate {

    public boolean isBuildToilet;

    protected HouseOne(String name) {
        super(name);
    }

    public HouseOne(String name, boolean isBuildToilet) {
        super(name);
        this.isBuildToilet = isBuildToilet;
    }

    @Override
    protected void buildDoor() {
        Log.i("dove",name+"的门采用防盗门");
    }

    @Override
    protected void buildWindow() {
        Log.i("dove",name+"的窗户要朝阳");
    }

    @Override
    protected void buildWall() {
        Log.i("dove",name+"的墙要采用空心砖");
    }

    @Override
    protected void buildBase() {
        Log.i("dove",name+"的地基要用钢筋混凝土");
    }

    @Override
    protected void buildToilet() {
        Log.i("dove",name+"的厕所要建两个");
    }

    @Override
    public boolean isBuildToilet() {
        return isBuildToilet;
    }
}
